<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Mebprofile.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Mebprofile.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'memberid',
                    footer: "Foots",
                    cnName: '会员档案',
                    name: 'Mebprofile',
                    url: "/Mebprofile/",
                    sortName: "memberid"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'address',title:'address',type:'string',width:120,align:'left',sortable:true},
                       {field:'nickname',title:'昵称',type:'string',width:120,align:'left'},
                       {field:'note',title:'备注',type:'string',width:120,align:'left'},
                       {field:'open_id',title:'openID',type:'string',width:120,align:'left'},
                       {field:'phone',title:'电话',type:'string',width:120,align:'left'},
                       {field:'photo',title:'照片',type:'string',width:120,align:'left'},
                       {field:'province',title:'省份',type:'string',width:120,align:'left'},
                       {field:'sex',title:'性别    0未知   1 男  2女 ',type:'string',width:120,align:'left'},
                       {field:'source',title:'来源',type:'int',width:120,align:'left'},
                       {field:'spare1',title:'spare1',type:'string',width:120,align:'left'},
                       {field:'spare2',title:'spare2',type:'string',width:120,align:'left'},
                       {field:'spare3',title:'spare3',type:'string',width:120,align:'left'},
                       {field:'spare4',title:'spare4',type:'string',width:120,align:'left'},
                       {field:'spare5',title:'spare5',type:'string',width:120,align:'left'},
                       {field:'status',title:'档案状态',type:'string',width:120,align:'left'},
                       {field:'tmplId',title:'模板id',type:'string',width:120,align:'left'},
                       {field:'nationality',title:'国籍',type:'string',width:120,align:'left'},
                       {field:'name',title:'名称',type:'string',width:120,align:'left'},
                       {field:'modifyID',title:'修改人ID',type:'int',width:120,hidden:true,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'area',title:'区县',type:'string',width:120,align:'left'},
                       {field:'beinvite_code',title:'被邀请码',type:'string',width:120,align:'left'},
                       {field:'business_id',title:'商户id',type:'string',width:120,align:'left'},
                       {field:'city',title:'城市',type:'string',width:120,align:'left'},
                       {field:'countries',title:'国家',type:'string',width:120,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:120,align:'left',sortable:true},
                       {field:'createID',title:'创建人ID',type:'int',width:120,hidden:true,align:'left'},
                       {field:'union_id',title:'unionID',type:'string',width:120,align:'left'},
                       {field:'creator',title:'创建人',type:'string',width:120,align:'left'},
                       {field:'headimage',title:'面部图片',type:'string',width:120,align:'left'},
                       {field:'idcardtype',title:'证件类型(1、身份证 ，2、护照 ，3、军人证件，4、残疾人证)',type:'string',width:120,align:'left'},
                       {field:'idnumber',title:'证件号码',type:'string',width:120,align:'left'},
                       {field:'invite_code',title:'邀请码',type:'string',width:120,align:'left'},
                       {field:'is_subscribe',title:'是否订阅',type:'string',width:120,align:'left'},
                       {field:'memberid',title:'会员编号',type:'int',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'modifier',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'distributor_code',title:'分销商编码',type:'string',width:120,align:'left'},
                       {field:'uuid',title:'uuid',type:'string',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
